package com.jsm.tf.net.message;

import lombok.Data;

@Data
public abstract class ResponseMessage extends Message {
    private boolean success;
    private int code;
    private String errorMsg;

    public boolean isSuccess() {
        return code == 0;
    }

    @Override
    abstract public byte getCommandType();
}
